<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin:0;
            padding:0;
        }
        div{
            width: 100px;
            height: 100px;
            background: rgb(42, 224, 233);
            position: absolute;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>
<script>
    
 //观察者模式
 //赤豆
 //argument
//hash去重


const {log} = console;
    // const box = document.querySelector("div");
    // box.addEventListener
    // const str = "asd123sdse456qwe789";
    // console.log(str.replace(/\d{3}/g,"--"))
    // console.log(str.match(/\d{3}/g));
    
    //     }
    // }
    // const str1 = "<div>hello world</div>"
    // const reg = /<.+?>/g;
    // console.log(str1.match(reg));
    // console.log(reg.test(str1));
        
    // const arr = [1,2,3,4,5,2,4,3,1,4];

    // const obj = [
    //     {name:"jack",age:18},
    //     {name:"Rose",age:11},
    //     {name:"Home",age:14},
    //     {name:"jack",age:18}
    // ]
    // console.log(obj.match({name:"jack",age:18}));

    // const arr = [
    //     ["name","jack"],
    //     ["age",18],
    //     ["year",2001]
    // ]
    // console.log(new Map(arr));

    // const arr1 = {}

    // // console.log(new Set(arr));

    // arr.forEach(item=>arr1[item] = " ");
    // log(...Object.keys(arr1));

// const obj1 = {
//     name:"jack"
// }
// log(obj1["name"]);

// function fn(a) {
//      console.log(a); 
//      var a = 2;
//      function a() {}; 
//      console.log(a);
//  }
// fn(2);

// console.log(0.1+0.2);
    // const reg = /g/
    // reg.    
    

</script>